package zuoye07;

import java.io.File;

public class zuoye03 {
     public static void main(String[] args) {
         File file = new File("abc");

         delet(file);
     }
     public static void delet(final File file) {
         File[] files = file.listFiles();
         if(files != null) {
             for (File f : files) {
                 f.delete();
                 delet(f);
             }
             file.delete();
         }
     }

}
